* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  background: #f5f5f5;
  color: #333;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

input[type="url"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background: #3498db;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #2980b9;
}

#stopTest {
  background: #e74c3c;
}

#stopTest:hover {
  background: #c0392b;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.stat-box {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  border: 1px solid #dee2e6;
}

.stat-box span:first-child {
  display: block;
  font-size: 14px;
  color: #6c757d;
}

.stat-box span:last-child {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

.graph-container {
  margin-bottom: 20px;
  height: 300px;
}

.status {
  text-align: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
  color: #6c757d;
}